DEPLOY=.\deploy
PDF=.
DVI=.
EXEs=main.exe
PDFs=main.pdf
DVIs=main.dvi

myall : $(EXEs) $(PDFs) $(DVIs) clean_borland

!include ..\makefile

GUILIBS=user32.lib Gdi32.lib comdlg32.lib

LINKFLAGS=-Tpe -ap -s -v -L$(CPPHOME)\lib
LINKSTARTUP=c0x32.obj
LINKLIBS=import32.lib cw32.lib

main.obj : main.cpp

DEPLOY : all core_create
	@copy *.exe $(DEPLOY)
	@copy *.pdf $(DEPLOY)
	-@if not exist $(DEPLOY)\log mkdir $(DEPLOY)\log

core_create:
	-@if not exist $(DEPLOY)\core\out mkdir $(DEPLOY)\core\out
	-@if not exist $(DEPLOY)\core\etc mkdir $(DEPLOY)\core\etc

main.exe: main.obj forth.obj
	$(LINKER) $(LINKFLAGS) $(LINKSTARTUP) main.obj forth.obj,main.exe,,$(LINKLIBS),,

INTERMEDIATE=*.obj del *.exe del *.log del *.RES *.scn *.pdf *.dvi *.idx *.toc *.opt *.ncb *.plg *.dsw *.dsp
